home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1996-10-09 | 7.5 KB | 154 lines | [ TEXT/ttxt]
_______________________________ Contact Information Cadili Francesco via Marconi 15 21026 Gavirate (VA) Italy Email: <cadili@kagi.com> (registration, info & bugs reports) Email: <cadili@skylink.it> (bugs reports, suggestion) N.B. I send a Email on your questions only if you have register the program. _______________________________ DLOG Manager 1.02 - $15 DLOG Manager is a library that can help in handle a DLOG structure. You define the DLOGs item in a Template structure 'EdF2'. It includes different feature that apple DLOG manager dosn't support. a) uses styl Text Edit for input and output. b) uses trumbs to manage greater text. c) uses multi-level pop-ups. d) uses input field with pop-ups. I raccomand you to try the program for a cupple of week and the decide to register it or to delete it. You can obtain more information typist Cmd-Opt-I in the main window (the one that appare after you type Cmd-N). The package contains two 68K version, one for the MPW 3.3.1 and one for THINK C 7.07. The two folder contain a program DLOGManagerSample 1.02 that swhow the management capacity of the library. Example The code for managing this DLOG is: /*** * help(); * * mostra l'help DLOG. * (helpDialog = 132, helpDLOGDescr = 132) * ***/ void CgestisciDLOGDati::help(void) { DialogPtr helpDialog; CgestisciDLOGDati helpDLOG; EventRecord event; short itemHit, pos; Boolean status; helpDialog = GetNewDialog(helpDLOGID, NULL, (WindowPtr)-1L); if (helpDialog != NULL && !helpDLOG.IgestisciDLOGDati(helpDialog, helpDLOGDescr)) { helpDLOG.disableAboutDLOG = true; do { helpDLOG.idle(); GetNextEvent(everyEvent, &event); itemHit = helpDLOG.gestEvent(&event); // gestisce i keyDown & equivalent if (itemHit == -1 && IsDialogEvent(&event)) { DialogSelect(&event, &helpDialog, &itemHit); helpDLOG.itemSelect(&event, itemHit, &pos, &status); // gestisce l'item } if (itemHit == okhelpDLOGitem) break; } while(true); helpDLOG.Dispose(); DisposDialog(helpDialog); } else if (helpDialog != NULL) DisposDialog(helpDialog); } Where the tempate structure 'EdF2' is: Diasable DLOG Manager Info BOOL Viene posto a true se all'interno dei DLOG non e' possibile accedere al DLOG delle informazioni sulla libreria DLOG Manager version 1.01 tramite la sequenza Comd-Opt-I. Number of Edit Field ZCNT Le caratteristiche di tutti i campi Text-Edit presenti nel DLOG: ***** LSTC Edit Field DWRD L'item del campo di input (user item) Font PSTR Il Font del campo di input Size DWRD La dimensione del font usato chicago font allignement BOOL Viene posto a true se si vuole allineare il font al font di sistem (chicago 12) Has ScrollBar BOOL Posto a true se il campo di input ha lo scroll bar (verticale). Has Orizzontal ScrollBar BOOL Posto a true se il campo di input ha lo scroll bar (orizzontale). Can Modify Font BOOL posto a true se l'utente può modificare lo stile del campo di input. inizialize with styl ID BOOL il testo con cui inizializzare il campo (memorizzato in campo 'TEXT' and 'styl') Has PopUp BOOL Posto a true se il campo di input ha as- sociato un popup. PopUp Field DWRD item del DLOG corrispondente al pop up (user item) PopUp DWRD ID del menu del pop up (ID di una risorsa MENU con ID < 255) ***** LSTE Number of List Field ZCNT Le caratteristiche di tutti i campi lista presenti nel DLOG: ***** LSTC Edit Field DWRD L'item del campo lista (user item). Number of Item ZCNT Descrizione degli elementi che compongono la lista (numero di colonne) ***** LSTC Dimensione DWRD Dimensione in pixel della colonna Titolo PSTR Titolo della colonna posto 4 pixel sopra, allineamento a sinistra rientrato di 4 pixel. Font Titolo PSTR Font del titolo Size Font Titolo DWRD Size del titolo Font PSTR Font usato per le scritte interne Size DWRD Dimensione delle scritte Can Modify BOOL Posto a true se è possibile modificare il contenuto della colonna. ***** LSTE Has ScrollBar BOOL Posto a true se la lista ha lo scroll (ver- ticale) Has Number Field BOOL Se la lista ha la colonna di numerazione (larghezza 20 pixel). Number Font PSTR La font usata nel campo numerico. Number Size DWRD La dimensione del font. ***** LSTE Number of PopUp Field ZCNT Le caratteristiche degli uteriori popup presenti nel DLOG. ***** LSTC PopUp Field DWRD L'item del popup (user item). PopUp DWRD L'ID del menu (minore di 255). ***** LSTE Default info ZCNT Le informazioni sui bottoni di default. ***** LSTC Input field DWRD item del campo di input associato al bottotone (<= 0 se il bottone non è associato ad alcun campo. Button field DWRD Numero di item del bottone. ***** LSTE Cancel Button DWRD Il bottone cancel (associato all'Esc key) Button Equivalent ZCNT Descrittori dei command equivalent asso- ciati ai bottoni. ***** LSTC Key Char CHAR codice del carattere associato. Button field DWRD numero di item del bottone. ***** LSTE DLOG Manager is a shareware you can use for 60 days, after those you have to pay your share fee. You can include the library in your code if you pay the fee: $15 for a student use (non-commercial use). $50 for a commercial use.